import request from '@/utils/request'

// 查询企业用车申请列表
export function listcarUseApply(query) {
    return request({
        url: '/enterprise/carUseApply/list',
        method: 'get',
        params: query
    })
}

// 查询企业用车申请详细
export function getcarUseApply(id) {
    return request({
        url: '/enterprise/carUseApply/' + id,
        method: 'get'
    })
}

// 新增企业用车申请
export function addcarUseApply(data) {
    return request({
        url: '/enterprise/carUseApply',
        method: 'post',
        data: data
    })
}

// 修改企业用车申请
export function updatecarUseApply(data) {
    return request({
        url: '/enterprise/carUseApply',
        method: 'put',
        data: data
    })
}

// 删除企业用车申请
export function delcarUseApply(id) {
    return request({
        url: '/enterprise/carUseApply/' + id,
        method: 'delete'
    })
}

// 导出企业用车申请
export function exportcarUseApply(query) {
    return request({
        url: '/enterprise/carUseApply/export',
        method: 'get',
        params: query
    })
}

// 新增企业用车申请
export function submit(data) {
    return request({
        url: '/enterprise/carUseApply/submit',
        method: 'post',
        data: data
    })
}